allwinner: Introduce GPIO helper function
authorAndre Przywara <andre.przywara@arm.com>
Sun, 14 Oct 2018 11:03:23 +0000 (12:03 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 20 Oct 2018 15:23:59 +0000 (16:23 +0100)
commit7020dca0bdad580d322839fcade8265d64a2e886
treeb1326565503abcf394bd429c7eccdb8f78759012
parent4ec1a2399cf6e182ba2828a40795912d20eca1ab
allwinner: Introduce GPIO helper function

Many boards without a dedicated PMIC contain simple regulators, which
can be controlled via GPIO pins.

To later allow turning them off easily, introduce a simple function to
configure a given pin as a GPIO out pin and set it to the desired level.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
plat/allwinner/common/include/sunxi_private.h
plat/allwinner/common/sunxi_common.c